 {include file="public/header" /}
 <body class="gray-bg">
 <div class="wrapper wrapper-content">
    <div class="ibox float-e-margins">
        {include file="public/tophead" /}
        {include file="public/top" /}
        <div class="ibox-content">
        {include file="public/topsection"}
            <div class="row row-lg">
                <div class="col-sm-12">
                    <div class="example">
                        <table data-toggle="table" data-striped="false">
                            <thead>
                                <tr>
                                    <th>用户id</th>
                                    <th>用户昵称</th>
                                    <th>最新消息</th>
                                    <th>管理</th>
                                </tr>
                            </thead>
                            <tbody>
                                {volist name="data" id="v"}
                                <tr id="id{$v.id}" class="class">
                                    <td>{$v.userid}</td>
                                    <td><img src="{:checkpath(_imgUrl('1').$v.head_portrait)}" alt="" width="100px" height="100px;">{$v.name}</td>
                                    <td>
                                      
                                     {if condition="$v.wei>0"}有<span style="color: red">{$v.wei}</span>条未读消息{else /}
                                     {switch name="$v.type"}
                                        {case value="1"}【图片】{/case}
                                        {case value="2"}【语音】{/case}
                                        {default /}{:_substr($v.content)}
                                    {/switch}
                                     {/if}   
                                    </td>
                                    <td>
                                        <div class="btn-group">
                                            <button data-toggle="dropdown" class="btn btn-primary btn-xs dropdown-toggle">操作 <span class="caret"></span>
                                            </button>
                                            <ul class="dropdown-menu">
                                                <li><a href="{:url('huifu',['touid'=>$v['userid'],'url'=>-1])}" target="_blank">详情</a>
                                                </li>
                                               <!--  <li class="divider"></li>
                                                <li><a onclick="swal_del({$v.id},'{:url('del')}')">删除</a>
                                                </li> -->
                                            </ul>
                                        </div>
                                    </td>
                                </tr>
                                {/volist}
                            </tbody>
                        </table>
                    </div>
                </div>  
            </div>
        </div>
    </div>
</div>
{load href="__PLUGINS__layui/layui.js"}
<script>
    function watch(id) {
        layui.use('layer', function(){
          var layer = layui.layer;
          layer.open({
              title :'查看大图',
              area: ['100%', '100%'],
              type: 2, 
              content: id
            }); 

         
        });
    }
</script>
<script type="text/javascript">
    // setInterval(function() {
    // window.location.reload();
    // },100000)
    

function add(url){
        layer.open({
          type: 2,
          title: '提示',
          shadeClose: false,
          shade: 0.2,
          area: ['90%', '90%'],
          skin:'shangchuantup',
          shift:-1,
          content: [url,'no'],
          scrollbar: false,
          moveType: 1,
          moveOut: true
        }); 
}
</script>
{include file="public/footer" /}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.css"}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.js"}